<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class LandownersSpec extends Model  {

	/**
	 * The database table used by the model.
	 *
	 * @var string
	 */
	protected $table = 'landowners_spec';
	protected $primaryKey  ='spec_id';

    /**
     * Indicates if the model should be timestamped.
     *
     * @var bool
     */
    public $timestamps = false;

    /**
     * Indicates if the primary key should be incrementing.
     *
     * @var bool
     */
    //protected $incrementing =false;

    /**
     * The storage format of the model's date columns.
     *
     * @var string
     */
    //protected $dateFormat = 'U';

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    //protected $fillable = ['name'];

    /**
     * The attributes that aren't mass assignable.
     *
     * @var array
     */
    //protected $guarded = ['price'];


    //use SoftDeletes;

    /**
     * The attributes that should be mutated to dates.
     *
     * @var array
     */
    //protected $dates = ['deleted_at'];

    /**
     * The attributes excluded from the model's JSON form.
     *
     * @var array
     */
    protected $hidden = [];

    /**
     * The goods that belong to the goods.
     */
    public function Landowners()
    {
        return $this->belongsTo('App\Models\Landowners','landowners_id','landowners_id');
    }
    public function landownersOrderEvaluation()
    {
        return $this->belongsTo('App\Models\LandownersOrderEvaluation','rec_id','rec_id');
    }

}
